package com.example.esdemo;

import org.elasticsearch.client.RequestOptions;
import org.elasticsearch.client.RestHighLevelClient;
import org.elasticsearch.client.indices.CreateIndexRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Authther: mrwu
 * @date:2021/5/17-05
 * @Description:com.example.esdemo
 */
@RestController
public class Escrud {



    public void  test(){
//        CreateIndexRequest createIndexRequest = new CreateIndexRequest("test");
//        restHighLevelClient.index(createIndexRequest,RequestOptions.DEFAULT);
    }
}
